<div class = "description">

   

    <h3><?= lang('other_accommodation_units'); ?></h3>

    <?
    if (!isset($_GET['preview'])) {

    $build_G = $_GET;
    if ($build_G['dest_hot'] == "")
    $build_G['dest_hot'] = -1;

    unset($build_G['lang']);

    $build_GET = http_build_query($build_G);
    }else {
    $build_GET = '&preview=1';
    }
    ?>

    <div class="other_rooms clearfix">

        <div class="title row padding">
            <div class="span5">ROOM TYPE</div>
            <div class="span3"><?= lang('res.service'); ?></div>
            <div class="span2"><?= lang('price'); ?></div>
        </div>

        <div class="units">

            <?
            foreach ($details->rooms as $room):
            if ($room->room_ID != $details->cur_room->room_ID):

            $href_room = lang_url('accommodation/' . $obj_name = URLify::filter($details->object_name) . '-' . $details->object_ID . '?' . $build_GET . '&room_id=' . $room->room_ID);
            ?>



            <?
            if (isset($room->photos[0])):
            $thumbnail = HOST_URL_HOTELS . 'gallery/' . $details->photo_path . '/rooms/' . $room->photos[0]->path . '/thumb_75x56/' . $room->photos[0]->photo_name;
            else:
            $thumbnail = "";
            endif;
            ?>

            <div class="row padding">
                <div class="span5">
                    <a href="<?= $href_room ?>" class="slika">
                        <img src="<?= $thumbnail ?>">
                    </a>

                    <?
                    $person_s = $room->room_max_person > 1 ? lang('res.persons') : lang('res.person');

                    if ($this->lang->mci_current() == 'me'):

                    if ($room->room_max_person == 1)
                    $person_s = lang('res.person');
                    else if ($room->room_max_person >= 2 && $room->room_max_person <= 4)
                    $person_s = lang('res.persone');
                    else
                    $person_s = lang('res.persons');

                    endif;
                    ?>

                    <div class="room_title">
                        <a href="<?= $href_room ?>"><?= lang('room.' . underscore($room->room_type_name)); ?> <span class="gray"><?= $room->room_description ?></span>&nbsp;<?= lang('form.for'); ?> <?= $room->room_max_person ?> <?= $person_s ?></a>
                    </div>
                </div>

                <div class="span3 gray"><?= $room->service_name ?></div>
                <div class="span2 price"><? if (!isset($_GET['preview'])) echo "<span>" . lang('from') . " </span>" . $room->selling_total . " €"; ?></div>
            </div>
            <?
            endif;
            endforeach;
           
            ?>
        </div>
    </div>

</div>